<?php

namespace common\models;


use Yii;

/**
 * This is the model class for table "comments".
 *
 * @property integer $comment_id
 * @property string $content
 * @property string $img
 * @property string $create_time
 */
class Comments extends \yii\db\ActiveRecord
{
    public $comment_id_s;
    public $comment_id_e;
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.comments';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
/*            [['create_time'], 'required'],*/
            [['create_time'], 'safe'],
            [['content'], 'string', 'max' => 3000],
            [['img'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'comment_id' => '评论ID',
            'content' => '评论内容',
            'img' => '图片',
            'create_time' => '评论时间',
            'comment_id_s' => '评论ID',
            'comment_id_e' => 'comment ID End'
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\CommentsQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\CommentsQuery(get_called_class());
    }

}
